#!/usr/bin/env python3
# Created by han on 2016/6/18
import logging

logger = logging.getLogger("计算器")
logger.setLevel(logging.INFO)

fh = logging.FileHandler("../log/access.log",encoding="utf-8")
fh.setLevel(logging.INFO)

fhmatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')

fh.setFormatter(fhmatter)

logger.addHandler(fh)